package com.shuqing.service;

import com.github.pagehelper.Page;
import com.shuqing.domain.Book;
import com.shuqing.domain.User;
import com.shuqing.utils.PageResult;

public interface BookService {
    PageResult selectNewBooks(Integer pageNum, Integer pageSize);

    Book findById(Integer id);

    Integer editBook(Book book);

    Integer borrowBook(Book book);

    PageResult search(Book book, Integer pageNum, Integer pageSize);

    Integer addBook(Book book);

    PageResult searchBorrowed(Book book, User user , Integer pageNum, Integer pageSize);

    boolean returnBook(Integer id,User user);


    Integer returnConfirm(Integer id);

}
